<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
//    echo $environment = App::environment();
    return view('greeting',['name'=>'james']);

});
//Route::get('user/{id}','UserController@show');



Route::get('my/profile', function () {
    // 更新用户的信息


});

Route::post('dashboard', function () {
    // 更新用户的信息

//    if (session('status'))

        return session('status');

//    endif
});

//Auth:routes();

Route::get('/home','HomeController@index');
Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
